﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BLL.SysManage
{
    public class THEME_PROJECT
    {
        private readonly DALL.SysManage.THEME_PROJECT dal = new DALL.SysManage.THEME_PROJECT();


        public List<Model.SysManage.THEME_PROJECT> GetProjecList(string strID)
        {
            string strWhere = "";
            strWhere += string.Format(" OriderID = '{0}' ", strID);
            return dal.GetProjectList(strWhere);
        }

        public THEME_PROJECT()
        { }
        #region  Method
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public Model.SysManage.THEME_PROJECT GetModel(int id, string OriderID, string ProjectID, string PROJECT_NAME, int Number, int PRICE, string REMARK)
        {

            return dal.GetModel(id, OriderID, ProjectID, PROJECT_NAME, Number, PRICE, REMARK);
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            return dal.GetList(strWhere);
        }
      
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public List<Model.SysManage.THEME_PROJECT> GetModelList(string strWhere)
        {
            dal.GetList(strWhere);
            return dal.GetListArray(strWhere);
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetAllList()
        {
            return GetList("");
        }
        #endregion
    }
}
